package com.ecut.property_project.mapper.building;

import com.ecut.property_project.model.building.BuildingHead;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BuildingHeadMapper {
    int deleteByPrimaryKey(String buildingId);

    int insert(BuildingHead record);

    int insertSelective(BuildingHead record);

    List<BuildingHead> selectAll();

    List<BuildingHead> selectByPage(Integer page, Integer pageSize);

    BuildingHead selectByPrimaryKey(String buildingId);

    int updateByPrimaryKeySelective(BuildingHead record);

    int updateByPrimaryKey(BuildingHead record);

    List<String> selectAllRegionByProject();

    List<BuildingHead> selectBuildingByRegion(String region);
}